package com.py.apis.wemedia;

import com.py.model.admin.dtos.NewsAuthDto;
import com.py.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @ClassName IWmNewsClient
 * @Description TODO
 * @Author AXing
 * @Date 2022/11/17 17:15
 * @Version 1.0
 */
@FeignClient(value = "leadnews-wemedia")
public interface IWmNewsClient {
    @PostMapping("/api/v1/news/newsList")
    public ResponseResult listWmnews(@RequestBody NewsAuthDto dto);

    @PostMapping("/api/v1/news/getDetail")
    public ResponseResult getDetail(@RequestParam Integer id);

    @PostMapping("/api/v1/news/refusePass")
    public ResponseResult refusePass(@RequestBody NewsAuthDto dto);

    @PostMapping("/api/v1/news/pass")
    public ResponseResult pass(@RequestBody NewsAuthDto dto);
}
